﻿requirejs.config({
    baseUrl: "/Public/js/",
    waitSeconds: 0,
    //urlArgs: "bust=" + (new Date()).getTime(),//部署后可以注释或者删除这一行
    paths: {
        "jquery": "/Public/js/libraries/jquery.min",
        "jquery.fancybox": "/Public/js/libraries/fancybox/jquery.fancybox.pack",
        "jquery.validate": "/Public/js/libraries/jquery.validate.min",
        "jquery.unobtrusive": "/Public/js/libraries/jquery.validate.unobtrusive.min",
        "jquery.jcarousel": "/Public/js/libraries/jcarousel/jquery.jcarousel.min",
        "jquery.connected-jcarousel": "/Public/js/libraries/connected-carousels/jcarousel.connected-carousels",
        "bootstrap": "/Public/js/libraries/bootstrap/bootstrap.min",
        "diyUpload": "/Public/js/libraries/diyUpload/js/diyUpload",
        "location": "/Public/js/libraries/location_cn",
        "emailAutocomplete": "/Public/js/libraries/emailAutocomplete",
        "culture": "/Public/js/kendoui/kendo.culture.zh-CN.min",
        "jquery.raty": "/Public/js/libraries/jquery.raty/jquery.raty",
        //"culture": "http://kendo.cdn.telerik.com/2014.2.716/js/cultures/kendo.culture.zh-CN.min",
        //"kendoui": "http://kendo.cdn.telerik.com/2014.2.716/js/kendo.ui.core.min"
    },
    map: {
        "*": {
            "css": ["css"]
        }
    },
    shim: { //非AMD规范编写的插件在此定义依赖关系
        "jquery.fancybox": {
            deps: ["jquery", "css!../js/libraries/fancybox/jquery.fancybox.css"],
            //exports: 'jQuery.fn.fancybox'
        },
        "jquery": {
            deps: ["css!../themes/font-awesome/css/font-awesome.min.css"]
        },
        "jquery.validate": {
            deps: ["jquery"]
        },
        "jquery.unobtrusive": {
            deps: ["jquery", "jquery.validate"]
        },
        "jquery.jcarousel": {
            deps: ["jquery", "css!../js/libraries/jcarousel/responsive/jcarousel.responsive.css"]
        },
        "jquery.connected-jcarousel": {
            deps: ["jquery", "jquery.jcarousel", "css!../js/libraries/connected-carousels/jcarousel.connected-carousels.css"]
        },
        "bootstrap": {
            deps: ["jquery"]
        },
        "diyUpload": {
            deps: ["jquery", "css!../js/libraries/diyUpload/css/diyUpload.css", "css!../js/libraries/diyUpload/css/webuploader.css"]
        },
        "emailAutocomplete": {
            deps: ["jquery"]
        },
        "culture": {
            deps: ["kendoui/kendo.web.min"]
        },
        "kendoui/kendo.web.min": {
            deps: ["jquery",
              "css!../../themes/kendoui/kendo.common.min.css",
              "css!../../themes/kendoui/kendo.default.min.css"]
        },
        "kendoui/kendo.multiselect.min": {
            deps: ["jquery",
                "css!../../themes/kendoui/kendo.common.min.css",
                "css!../../themes/kendoui/kendo.default.min.css"]
        },
        "kendoui/kendo.datepicker.min": {
            deps: ["jquery",
                "css!../../themes/kendoui/kendo.common.min.css",
                "css!../../themes/kendoui/kendo.default.min.css"]
        },
        "libraries/jquery.lazyload.min": {
            deps: ["jquery"]
        },
        "jquery.raty": {
            deps: ["jquery", "css!../js/libraries/jquery.raty/jquery.raty.css"]
        }
    }
});